package cn.cy.service.impl;

import cn.cy.dao.ClaimVoucherDetailDao;
import cn.cy.pojo.ClaimVoucherDetail;
import cn.cy.service.ClaimVoucherDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("claimVoucherDetailService")
public class ClaimVoucherDetailServiceImpl implements ClaimVoucherDetailService {
    @Autowired
    private ClaimVoucherDetailDao claimVoucherDetailDao;

    @Override
    public List<ClaimVoucherDetail> findById(Long Id) {
        return claimVoucherDetailDao.findById(Id);
    }

    @Override
    public List<ClaimVoucherDetail> findAll() {
        return claimVoucherDetailDao.findAll(ClaimVoucherDetail.class);
    }

    @Override
    public void save(ClaimVoucherDetail claimVoucherDetail) {
        claimVoucherDetailDao.save(claimVoucherDetail);
    }

    @Override
    public void update(ClaimVoucherDetail claimVoucherDetail) {
        claimVoucherDetailDao.update(claimVoucherDetail);
    }

    @Override
    public void delete(ClaimVoucherDetail claimVoucherDetail) {
        claimVoucherDetailDao.delete(claimVoucherDetail);
    }
}
